#include<stdio.h>
#include"method.h"
#include<string.h>
int i,j,k;
int length,search_num;
int main()
{
 char str[3][100];
 for (int i=0;i<3;i++)
 {
    gets_s(str[i],100);
 }
 switch_f(str);//三个字符串比较大小，通过switch_f来比较大小

 printf("input the length of the array:\n");  
 scanf("%d",&length);
 int arr[length];
 scan_f(arr);//定义数组的函数

 printf("enter the element you want to query:\n");
 scanf("%d",&search_num);//查找目标元素
 binary_scan(arr);//二分查找的函数
  return 0;
}